﻿@{
    ViewBag.Title = "newindex";
}
@section scripts
{
    <script src="@Url.Content("~/Scripts/shared/share.js")" type="text/javascript"></script> 
    <link href="~/Scripts/miniui/themes/default/medium-mode.css" rel="stylesheet" type="text/css" />      
}

<form id="form1" method="post">
    <table>
        <tr>
            <td width="100px" height ="50px" align="right" >
                <span id="FCaption">件</span>
            </td>            
            <td width="300px" height ="50px">
                <input id="FValue" name="FValue" class="mini-spinner" changeOnMousewheel="false" minValue="0" maxValue="9999999"
                   onkeypress="setKeyPress()" style="width:180px;"showbutton="false" format="#,0.00" allowNull="true" />
            </td>
        </tr>
    </table>

    <table style="width:100%;">
        <tr>
            <td style="width:200px;" align="right">
                <a class="mini-button" name="SaveInfo" iconCls="icon-save" onclick="SaveInfo()">确定</a>           
            </td>
            <td style="width:200px;" align="center"> 
                <a class="mini-button" name="Cancel" iconCls="icon-close" onclick="CloseWindow('')">关闭</a>       
            </td>
        </tr>
    </table> 
</form>

<script>
    function FormShown() {
        mini.parse();        
    }
    function SetData(data) {
        $("#FCaption").html(data.sName + ":");
        mini.get("FValue").setValue("");
        mini.get("FValue").focus();
    }

    //保存资料
    function SaveInfo() {
        var mValue = mini.getbyName("FValue").getValue();
        CloseWindow(mValue);
    }

    function setKeyPress() {
        if (event.keyCode == 13) {
            SaveInfo();
        }
    }

</script>